import Vue from 'vue'

import App from './App'
import router from './router'

import {formatTime, formatDate, compareDates, roundNumber, deepClone, getBrowserFingerprint} from "@/utils/index";

// 全局方法挂载
Vue.prototype.getBrowserFingerprint = getBrowserFingerprint
Vue.prototype.formatTime = formatTime
Vue.prototype.formatDate = formatDate
Vue.prototype.compareDates = compareDates
Vue.prototype.deepClone = deepClone
Vue.prototype.roundNumber = roundNumber

/**
 * If you don't want to use mock-server
 * you want to use MockJs for mock api
 * you can execute: mockXHR()
 *
 * Currently MockJs will be used in the production environment,
 * please remove it before going online! ! !
 */

Vue.config.productionTip = false

new Vue({
    el: '#app',
    router,
    render: h => h(App)
})
